package com.clinic.service.impl;

import com.clinic.dao.OrdersDao;
import com.clinic.entity.Orders;
import com.clinic.service.OrdersService;
import com.clinic.vo.OrdersVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Orders)表服务实现类
 *
 * @author makejava
 * @since 2020-11-12 15:55:19
 */
@Service("ordersService")
public class OrdersServiceImpl implements OrdersService {
    @Autowired(required = false)
    private OrdersDao ordersDao;


    @Override
    public List<Orders> findOrderByPid(int pid) {

        return ordersDao.findOrderByPid(pid);
    }

    @Override
    public int addOrder(OrdersVo ordersVo) {
        return ordersDao.addOrder(ordersVo);
    }
}